package com.chen.palmar.entity;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.List;

/**
 * Created by chen on 2018/1/6.
 */

public class TypeListEntity implements Serializable {

    /**
     * resultCode : 1000
     * message : null
     * error : null
     * data : [{"categoryId":1,"name":"散装称重","img":"http://union-upload.other.ren/upload/photo/1200/201712/69e2c90d-75e5-48d8-8e9e-85c2174d2a13.jpg"},{"categoryId":2,"name":"包装定量","img":"http://union-upload.other.ren/upload/photo/1200/201712/3bb16600-6b8a-4204-8ef4-ca5951855220.jpg"},{"categoryId":3,"name":"高端休食","img":"http://union-upload.other.ren/upload/photo/1200/201712/bffa75c7-dd89-4542-a2a8-74f236868c89.jpg"},{"categoryId":4,"name":"礼品礼盒","img":"http://union-upload.other.ren/upload/photo/1200/201712/4aedddd4-d64d-47b2-9b9e-08539259fba7.jpg"},{"categoryId":5,"name":"OEM定制","img":"http://union-upload.other.ren/upload/photo/1200/201712/d19ac5d2-9553-4cf5-865e-2f2eeee85b85.jpg"}]
     * dataReserve1 : null
     * dataReserve2 : null
     * navigatePageNumbers : null
     */

    private int resultCode;
    private String message;
    private String error;
    private String dataReserve1;
    private String dataReserve2;
    private String navigatePageNumbers;
    private List<DataBean> data;

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getDataReserve1() {
        return dataReserve1;
    }

    public void setDataReserve1(String dataReserve1) {
        this.dataReserve1 = dataReserve1;
    }

    public String getDataReserve2() {
        return dataReserve2;
    }

    public void setDataReserve2(String dataReserve2) {
        this.dataReserve2 = dataReserve2;
    }

    public String getNavigatePageNumbers() {
        return navigatePageNumbers;
    }

    public void setNavigatePageNumbers(String navigatePageNumbers) {
        this.navigatePageNumbers = navigatePageNumbers;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        /**
         * categoryId : 1
         * name : 散装称重
         * img : http://union-upload.other.ren/upload/photo/1200/201712/69e2c90d-75e5-48d8-8e9e-85c2174d2a13.jpg
         */

        private int categoryId;
        private String name;
        private String img;

        public int getCategoryId() {
            return categoryId;
        }

        public void setCategoryId(int categoryId) {
            this.categoryId = categoryId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        @Override
        public String toString() {
            if (!TextUtils.isEmpty(name)) {
                return name;
            }
            return super.toString();
        }
    }
}
